/**
 * 
 */
package com.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 投票选项Model类。
 * @author Danny Tam
 *
 */
@Entity
public class VoteOptions {
	/**
	 * 主键。
	 */
	private Integer id;
	/**
	 * 选项内容。
	 */
	private String content;
	/**
	 * 选项排序号。
	 */
	private Integer sort;
	/**
	 * 投票次数
	 */
	private Integer voteCount;
	
	private Vote vote;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public Integer getVoteCount() {
		return voteCount;
	}
	public void setVoteCount(Integer voteCount) {
		this.voteCount = voteCount;
	}
	@ManyToOne
	@JoinColumn(name="voteid")
	public Vote getVote() {
		return vote;
	}
	public void setVote(Vote vote) {
		this.vote = vote;
	}
}
